#!/bin/env python
import sys

def tohex(text):
  result = ''
  for c in text:
    if c == '\n' or c >= ' ' and ord(c) < 127:
      result += c
    else:
      result += '\\x%02x' % ord(c)
  return result

def main():
  text = sys.stdin.read()
  print tohex(text)

if __name__=='__main__':
  main()
